Optimal. Leaf size=70 \[ \frac{(3 a+b) \tan ^{-1}(\sinh (c+d x))}{8 d}+\frac{(a-b) \tanh (c+d x) \text{sech}^3(c+d x)}{4 d}+\frac{(3 a+b) \tanh (c+d x) \text{sech}(c+d x)}{8 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0470149, antiderivative size = 70, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.19, Rules used = {3190, 385, 199, 203} \[ \frac{(3 a+b) \tan ^{-1}(\sinh (c+d x))}{8 d}+\frac{(a-b) \tanh (c+d x) \text{sech}^3(c+d x)}{4 d}+\frac{(3 a+b) \tanh (c+d x) \text{sech}(c+d x)}{8 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3190
Rule 385
Rule 199
Rule 203
Rubi steps
\begin{align*} \int \text{sech}^5(c+d x) \left (a+b \sinh ^2(c+d x)\right ) \, dx &=\frac{\operatorname{Subst}\left (\int \frac{a+b x^2}{\left (1+x^2\right )^3} \, dx,x,\sinh (c+d x)\right )}{d}\\ &=\frac{(a-b) \text{sech}^3(c+d x) \tanh (c+d x)}{4 d}+\frac{(3 a+b) \operatorname{Subst}\left (\int \frac{1}{\left (1+x^2\right )^2} \, dx,x,\sinh (c+d x)\right )}{4 d}\\ &=\frac{(3 a+b) \text{sech}(c+d x) \tanh (c+d x)}{8 d}+\frac{(a-b) \text{sech}^3(c+d x) \tanh (c+d x)}{4 d}+\frac{(3 a+b) \operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,\sinh (c+d x)\right )}{8 d}\\ &=\frac{(3 a+b) \tan ^{-1}(\sinh (c+d x))}{8 d}+\frac{(3 a+b) \text{sech}(c+d x) \tanh (c+d x)}{8 d}+\frac{(a-b) \text{sech}^3(c+d x) \tanh (c+d x)}{4 d}\\ \end{align*}
Mathematica [A] time = 0.149494, size = 60, normalized size = 0.86 \[ \frac{(3 a+b) \tan ^{-1}(\sinh (c+d x))+2 (a-b) \tanh (c+d x) \text{sech}^3(c+d x)+(3 a+b) \tanh (c+d x) \text{sech}(c+d x)}{8 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.072, size = 124, normalized size = 1.8 \begin{align*}{\frac{\tanh \left ( dx+c \right ) a \left ({\rm sech} \left (dx+c\right ) \right ) ^{3}}{4\,d}}+{\frac{3\,a{\rm sech} \left (dx+c\right )\tanh \left ( dx+c \right ) }{8\,d}}+{\frac{3\,a\arctan \left ({{\rm e}^{dx+c}} \right ) }{4\,d}}-{\frac{b\sinh \left ( dx+c \right ) }{3\,d \left ( \cosh \left ( dx+c \right ) \right ) ^{4}}}+{\frac{b\tanh \left ( dx+c \right ) \left ({\rm sech} \left (dx+c\right ) \right ) ^{3}}{12\,d}}+{\frac{b{\rm sech} \left (dx+c\right )\tanh \left ( dx+c \right ) }{8\,d}}+{\frac{b\arctan \left ({{\rm e}^{dx+c}} \right ) }{4\,d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.53705, size = 308, normalized size = 4.4 \begin{align*} -\frac{1}{4} \, a{\left (\frac{3 \, \arctan \left (e^{\left (-d x - c\right )}\right )}{d} - \frac{3 \, e^{\left (-d x - c\right )} + 11 \, e^{\left (-3 \, d x - 3 \, c\right )} - 11 \, e^{\left (-5 \, d x - 5 \, c\right )} - 3 \, e^{\left (-7 \, d x - 7 \, c\right )}}{d{\left (4 \, e^{\left (-2 \, d x - 2 \, c\right )} + 6 \, e^{\left (-4 \, d x - 4 \, c\right )} + 4 \, e^{\left (-6 \, d x - 6 \, c\right )} + e^{\left (-8 \, d x - 8 \, c\right )} + 1\right )}}\right )} - \frac{1}{4} \, b{\left (\frac{\arctan \left (e^{\left (-d x - c\right )}\right )}{d} - \frac{e^{\left (-d x - c\right )} - 7 \, e^{\left (-3 \, d x - 3 \, c\right )} + 7 \, e^{\left (-5 \, d x - 5 \, c\right )} - e^{\left (-7 \, d x - 7 \, c\right )}}{d{\left (4 \, e^{\left (-2 \, d x - 2 \, c\right )} + 6 \, e^{\left (-4 \, d x - 4 \, c\right )} + 4 \, e^{\left (-6 \, d x - 6 \, c\right )} + e^{\left (-8 \, d x - 8 \, c\right )} + 1\right )}}\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.60049, size = 2838, normalized size = 40.54 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.15173, size = 209, normalized size = 2.99 \begin{align*} \frac{{\left (\pi + 2 \, \arctan \left (\frac{1}{2} \,{\left (e^{\left (2 \, d x + 2 \, c\right )} - 1\right )} e^{\left (-d x - c\right )}\right )\right )}{\left (3 \, a + b\right )}}{16 \, d} + \frac{3 \, a{\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )}^{3} + b{\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )}^{3} + 20 \, a{\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )} - 4 \, b{\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )}}{4 \,{\left ({\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )}^{2} + 4\right )}^{2} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]